# coding:utf-8
# *******************************************************************
# * Copyright 2021-2080 evilbinary
# * 作者: evilbinary on 01/01/20
# * 邮箱: rootdebug@163.com
# ********************************************************************
import os

Import('env')

env.Program('gui.elf', [
    'main.c',
    '../libgui/libgui.a',
    '../libgui/libimage.a',
    '../libjpeg/libjpeg.a',
    '../libpng/libpng.a',
    '../libzlib/libzlib.a',
    '../../libs/libc/libc.a',
    '../../libs/libalgorithm/libalgorithm.a',

    ],
    CFLAGS='$CFLAGS -Ilibs/include/c/ -Iapp/libgui/ -Iapp/libjpeg',
    LINKFLAGS= '$LINKFLAGS --entry main -Tuser.ld')

# env.Objcopy('gui.elf','gui',OBJCOPYFLAGS='-S --strip-all')
#env.Objcopy('gui.dbg','gui.elf',OBJCOPYFLAGS='--only-keep-debug')